package com.ep.thirdPlatformProject.oa.mapstruct;

import com.ep.thirdPlatformProject.oa.entity.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface EcologyReportConvertMapper {

    EcologyReportConvertMapper INSTANCE = Mappers.getMapper(EcologyReportConvertMapper.class);


    /**
     * 将通用vo转化为 已办流程视图vo
     *
     * @param entity 实体
     * @return {@link EcologyFinishedWorkflowVO }
     */
    EcologyFinishedWorkflowVO convert2workflowVO(EcologyCommonEmpInfoVO entity);


    /**
     * 将通用vo转化为待办vo
     *
     * @param entity 实体
     * @return {@link EcologyTodoWorkflowVO }
     */
    EcologyTodoWorkflowVO convert2TodoAmountVO(EcologyCommonEmpInfoVO entity);


    /**
     * 将通用vo转化为待超时vo
     *
     * @param entity 实体
     * @return {@link EcologyTimeoutWorkflowVO }
     */
    EcologyTimeoutWorkflowVO convert2TodoTimeoutVO(EcologyCommonEmpInfoVO entity);


    /**
     * 将通用vo转化为审批率的vo
     *
     * @param entity 实体
     * @return {@link EcologyWorkflowAuditRateVO }
     */
    EcologyWorkflowAuditRateVO convert2TodoAuditRateVO(EcologyCommonEmpInfoVO entity);
}
